<?php
namespace app\index\controller;

use MongoDB\BSON\ObjectId;
use MongoDB\Driver\Command;
use PhpOffice\PhpSpreadsheet\Calculation\DateTime;
use PhpOffice\PhpSpreadsheet\Shared\Date;
use think\Controller;
use think\File;
use think\Db;
use think\Cache;
use app\index\model\JobCardQRCode;
use think\queue\Job;

class Index extends Controller
{

    public function index()
    {
        dump(empty(0));
        //return mongo('test')->select();
    }

    /**********************门店管理*********************************/
    public function addStore() {return Store::addStoreDb();}
    public function getStores() {return Store::getStoresDb();}
    public function deleteStore() {return Store::deleteStoreDb();}
    public function editStore() {return Store::editStoreDb();}
    public function getFloors() {return Store::getFloors();}
/**********************用户管理*********************************/
    public function login() { return User::loginDb();}
    public function uploadPhoto() { return User::uploadPhotoDb();}
    public function editPhone() { return User::editPhoneDb();}
    public function editUserName() { return User::editUserNameDb();}
    public function editPassword() { return User::editPasswordDb();}
    public function forgetPasswd() { return User::forgetPasswdDb();}
    public function weiXinSuccess() { return User::weiXinSuccess();}
    public function weiXinLogin() { return User::weiXinLogin();}
    public function bindEmail() { return User::bindEmail();}
    public function getMailCode() { return User::getMailCode();}
    public function getCode() { return User::getCode();}
    public function register() { return User::registerDb();}
    public function logout() { return User::logout();}
    public function getAllPeoples() {return User::getAllPeoples();}

    public function getOrderNum() {return User::getOrderNum();}
    public function myRepairOrder() {return User::myRepairOrder();}
    public function auditingNotices() {return User::auditingNotices();}
    public function doAuditing() {return User::doAuditing();}
    public function switchStores() {return User::switchStores();}

/**********************档案管理*********************************/
    public function addEquipRecord() { return EquipRecord::addEquipRecord(); }
    public function getAllMajor() { return EquipRecord::getAllMajor(); }
    public function editEquipRecord() { return EquipRecord::editEquipRecord(); }
    public function editChildDevice() {return EquipRecord::editChildDevice();}
    public function getEquipRecord() { return EquipRecord::getEquipRecord(); }
    public function deleteEquipRecord() { return EquipRecord::deleteEquipRecord(); }
    public function renameEquipRecord() { return EquipRecord::renameEquipRecord(); }
    public function getDeviceTreeList() { return EquipRecord::getDeviceTreeList(); }
    public function getAllQRCode() { return EquipRecord::getAllQRCode(); }
    public function getChildDevices() { return EquipRecord::getChildDevices(); }

    public function uploadInstruction() { return EquipRecord::uploadInstruction(); }
    public function deleteInstruction() { return EquipRecord::deleteInstruction(); }

/**********************维保计划*********************************/
    public function getMaintenanceMenu(){return Maintenance::getMaintenanceMenuDb();}
    public function getDeviceCycle(){return Maintenance::getDeviceCycleDb();}
    public function editDeviceMaintenance(){return Maintenance::editDeviceMaintenanceDb();}
    public function appGetDeviceCycle(){return Maintenance::appGetDeviceCycle();}

/**********************能源管理*********************************/
    public function addMerchant(){return EnergyStore::addMerchant();}
    public function deleteMerchants(){return EnergyStore::deleteMerchants();}
    public function getMerchants(){return EnergyStore::getMerchants();}

    public function newMeterReadPlan(){return EnergyReadMeter::newMeterReadPlan();}
    public function editMeterReadPlan(){return EnergyReadMeter::editMeterReadPlan();}
    public function deleteMeterReadPlan(){return EnergyReadMeter::deleteMeterReadPlan();}
    public function getMeterReadPlan(){return EnergyReadMeter::getMeterReadPlan();}
    public function getMeterNum(){return EnergyReadMeter::getMeterNum();}
    public function writeMeterNum(){return EnergyReadMeter::writeMeterNum();}
    public function editTotalDetail(){return EnergyReadMeter::editTotalDetail();}
    public function getTotalDetail(){return EnergyReadMeter::getTotalDetail();}
    public function getEnergyDetailByDate(){return EnergyReadMeter::getEnergyDetailByDate();}

    public function oneexportReportEnergy() {return EnergyReadMeter::oneexportReportEnergy();}
    public function multiexportReportEnergy() {return EnergyReadMeter::multiexportReportEnergy();}

/**********************权限管理*********************************/
    public function getPositions(){return Jurisdiction::getPositionsDb();}
    public function getPositionsByStore(){return Jurisdiction::getPositionsByStoreDb();}
    public function allotPeoples(){return Jurisdiction::allotPeoplesDb();}
    public function setJurisdiction(){return Jurisdiction::setJurisdictionDb();}
    public function getJurisdiction(){return Jurisdiction::getJurisdictionDb();}
    /**********************故障报修*********************************/
    public function sendOrders(){return Malfunction::sendOrdersDb();}
    public function getAllOrders(){return Malfunction::getAllOrdersDb();}
    public function editAllOrders(){return Malfunction::editAllOrdersDb();}
    public function getOrders(){return Malfunction::getOrdersDb();}
    public function finishMaintain(){return Malfunction::finishMaintainDb();}
    public function oneexportReportMalfunction() {return Malfunction::oneexportReportMalfunction();}
    public function multiexportReportMalfunction() {return Malfunction::multiexportReportMalfunction();}
/**********************作业单*********************************/
    public function getAllTaskBillExpired(){return JobCard::getAllTaskBillExpired();}
    public function getTaskBillInfoList(){return JobCard::getTaskBillInfoList();}
    public function editMaintenanceDeviceJob(){return JobCard::editMaintenanceDeviceJob();}
    public function oneexportReportJobCard() {return JobCard::oneexportReportJobCard();}
    public function multiexportReportJobCard() { return JobCard::multiexportReportJobCard();}
/**********************考核评分*********************************/
    public function getStaffScoreByPositon() { return RecoScore::getStaffScoreByPositon(); }
    public function appgetStaffScoreByPositon() { return RecoScore::appgetStaffScoreByPositon(); }
    public function scoreForStaff() { return RecoScore::scoreForStaff(); }
    public function getRankingList() { return RecoScore::getRankingList(); }
    public function newAssessmentDetail() { return QualityExamine::newAssessmentDetail(); }
    public function getAssessmentHistory() { return QualityExamine::getAssessmentHistory(); }
    public function editAssessmentDetail() { return QualityExamine::editAssessmentDetail(); }
    public function getAssessmentDetail() { return QualityExamine::getAssessmentDetail(); }
    public function removeAssessment() { return QualityExamine::removeAssessment(); }
    /**********************物业档案*********************************/
    public function propertyUploadFile() { return PropertyFiles::propertyUploadFile(); }
    public function renameFile() { return PropertyFiles::renameFile(); }
    public function createDirectory() { return PropertyFiles::createDirectory(); }
    public function deleteDirectoryOrFile() { return PropertyFiles::deleteDirectoryOrFile(); }
    public function renameDirectory() { return PropertyFiles::renameDirectory(); }
    public function moveToDirectory() { return PropertyFiles::moveToDirectory(); }
    public function getDirOrFile() { return PropertyFiles::getDirOrFile(); }
    public function downloadFiles() { return PropertyFiles::downloadFiles(); }
    public function cancelUpload() { return PropertyFiles::cancelUpload(); }

    /**********************学习培训*********************************/
    public function newPaper() { return TrainingManage::newPaper(); }
    public function renamePaper() { return TrainingManage::renamePaper(); }
    public function getPapers() { return TrainingManage::getPapers(); }
    public function deletePaper() { return TrainingManage::deletePaper(); }
    public function addExaminationQuestions() { return TrainingManage::addExaminationQuestions(); }
    public function getExaminationQuestions() { return TrainingManage::getExaminationQuestions(); }
    public function editExaminationQuestions() { return TrainingManage::editExaminationQuestions(); }
    public function deleteExaminationQuestions() { return TrainingManage::deleteExaminationQuestions(); }
    public function publishExamination() { return Trainingquestions::publishExamination(); }
    public function getExaminations() { return Trainingquestions::getExaminations(); }
    public function getExaminationTopics() { return Trainingquestions::getExaminationTopics(); }
    public function answerExaminationTopic() { return Trainingquestions::answerExaminationTopic(); }
    public function getHistoryExaminations() { return Trainingquestions::getHistoryExaminations(); }

}
